﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Windows;
using System.Xml.Serialization;
namespace XYZshell.Game.CardGameEngine
{
	/// <summary>
	/// 手牌类
	/// </summary>
	[Serializable]
	public class Hand : GameObject 
	{
		/// <summary>
		/// 默认构造
		/// </summary>
		public Hand()
		{
			Cards = new CardCollection();
			
		}

		#region 属性

		/// <summary>
		/// 手牌的张数
		/// </summary>
		public int Count
		{
			get
			{
				return Cards.Count;
			}
			
		}


		//Max count

		/// <summary>
		/// 包含的卡牌
		/// </summary>
		[XmlIgnore]
		public CardCollection Cards
		{
			get;
			private set;
		}


		#endregion




	}
}
